<!--#if FIREFOX || MOZCENTRAL-->
<!--#include viewer-snippet-firefox-extension.html-->
<!--#endif-->
<!--#if CHROME-->
<!--#include viewer-snippet-chrome-extension.html-->
<!--#endif-->

    <link rel="stylesheet" href="<?= $this->webroot ?>js/pdf-js/web/viewer.css"/>
<!--#if !PRODUCTION-->
    <!--<link rel="resource" type="application/l10n" href="locale/locale.properties"/>-->
<!--#endif-->

<!--#if !(MOZCENTRAL || CHROME || MINIFIED)-->
    <script src="<?= $this->webroot ?>js/pdf-js/web/compatibility.js"></script>
<!--#endif-->

<!--#if !PRODUCTION-->
    <script src="<?= $this->webroot ?>js/pdf-js/external/webL10n/l10n.js"></script>
<!--#endif-->

<!--#if !PRODUCTION-->
    <script src="<?= $this->webroot ?>js/pdf-js/src/shared/util.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/src/display/api.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/src/display/metadata.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/src/display/canvas.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/src/display/webgl.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/src/display/pattern_helper.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/src/display/font_loader.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/src/display/annotation_helper.js"></script>
    <script>PDFJS.workerSrc = '<?= $this->webroot ?>js/pdf-js/src/worker_loader.js';</script>
<!--#endif-->

<!--#if (GENERIC && !MINIFIED) -->
<!--#include viewer-snippet.html-->
<!--#endif-->

<!--#if !PRODUCTION-->
    <script src="<?= $this->webroot ?>js/pdf-js/web/ui_utils.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/default_preferences.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/preferences.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/download_manager.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/view_history.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/pdf_rendering_queue.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/page_view.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/text_layer_builder.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/pdf_viewer.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/thumbnail_view.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/document_outline_view.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/document_attachments_view.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/pdf_find_bar.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/pdf_find_controller.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/pdf_history.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/secondary_toolbar.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/presentation_mode.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/grab_to_pan.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/hand_tool.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/overlay_manager.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/password_prompt.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/document_properties.js"></script>
<!--#endif-->

<!--#if !MINIFIED -->
    <script src="<?= $this->webroot ?>js/pdf-js/web/debugger.js"></script>
    <script src="<?= $this->webroot ?>js/pdf-js/web/viewer.js"></script>
<!--#else-->
<!--#include viewer-snippet-minified.html-->
<!--#endif-->